Skip to content

Conversation

@Jonathhhan
Copy link
Contributor

@Jonathhhan Jonathhhan commented Feb 5, 2025

Not sure if this is the right position of code and if there are any drawbacks. But when I want to compile OF as a shared lib with Linux I need to compile with -fPIC. There are also some apothecary libs that need to be rebuild with -fPIC for that (kiss and pugixml for example). My use case is, that I want to compile https://github.com/Jonathhhan/ofxOfeliaExtended as an external for Pure Data, which works if I compile OF core with -fPIC and leave the mentioned libs out.

@Jonathhhan Jonathhhan marked this pull request as draft February 5, 2025 02:45
@Jonathhhan Jonathhhan closed this Feb 5, 2025
@danoli3
Copy link
Member

danoli3 commented Feb 6, 2025

New toolchains for Linux use -fPIC

@Jonathhhan
Copy link
Contributor Author

@danoli3 thats nice. I deleted my PR, because in ofxOfelia is a script, which adds that flag...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants